import {useSelector} from "react-redux";
import {StateType} from "../store";
import {PageInfoType} from "../store/pageInfoReducer";

export default function useGetPageInfo() {
    return useSelector<StateType>(state => state.pageInfo) as PageInfoType
}